from xml.etree import ElementTree
import re
bricks_xml = ElementTree.parse( 'Bricks.xml' )
bricks = bricks_xml.getroot()
brick = bricks.find( 'brick' )
bricks_list = []
brick_name = bricks.findall('brick')
print brick_name[0].tag, brick_name[0].attrib
for todo in bricks.findall( 'brick/todo' ):
    print todo.tag, todo.attrib
    for action  in  todo:
        print action.tag,action.text